package com.xxh.initial.system.controller;


import com.xxh.initial.system.entity.SysUser;
import com.xxh.initial.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xyf
 * @since 2025-04-02
 */
@RestController
@RequestMapping("/system/sysUser")
public class SysUserController {
    @Autowired
    ISysUserService sysUserService;

    //保存用户接口
    @PostMapping("/save")
    public SysUser save(@RequestBody SysUser sysUser){
        sysUserService.save(sysUser);
        return sysUser;
    }
}
